package com.hz.airline.dao;

import com.hz.airline.entity.LinkMan;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by kevin on 2020/2/2 17:06
 */
public interface LinkManDao extends CrudRepository<LinkMan, Integer> {

    List<LinkMan> findAllByUserid(String userid);

    LinkMan findByLinkmanid(int linkmanid);

    LinkMan findByUseridAndLinkmanid(String userid, int linkmanid);

    LinkMan findByUseridAndMobileAndAndEmail(String userid, String mobile, String email);
}
